package com.anxin.constants;

public class RedisKeyGenerator extends KeyGenerator {

	public static String genMobileCaptchaKey(String mobilePhone) {
		return genKey(mobilePhone, "captcha");
	}

	public static String genMobileCaptchaIntervalKey(String mobilePhone) {
		return genKey(mobilePhone, "captchaInterval");
	}

	public static String genImgCaptchaKey(String token) {
		return genKey(token, "imgCode");
	}
	
	public static String genModelKey(String token,String model) {
		return genKey(token, model);
	}
	
	public static String genSharkStatusKey(String userId) {
		return genKey(userId, "sharkStatus");
	}

	/**
	 * 用户验证的key
	 * 
	 * @param code
	 * @param type
	 * @return
	 */
	public static String genUserVerifyCodeKey(String code, String type) {
		return genKey(code, type);
	}
}
